<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {//页面加载结束
                $("#get").click(function () {
                        //发送请求
                    var  url = "http://localhost:8080/project1/test3"
                    var paramter = ""
                    var func =function(data){
                        alert(data.length)
                        alert(data[0].name)
                        alert(data[0].nums)
                    }
                    var type="json"
                    $.get(url,paramter,func,type);
        })
        })
    </script>
</head>
<body>
    <input type="button" value="get" id="get">
</body>
</html>